﻿using Coldairarrow.Entity.Company;
using Coldairarrow.Util;
using EFCore.Sharding;
using LinqKit;
using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Dynamic.Core;
using System.Threading.Tasks;

namespace Coldairarrow.Business.Company
{
    public class BTB_CompanyBusiness : BaseBusiness<BTB_Company>, IBTB_CompanyBusiness, ITransientDependency
    {
        public BTB_CompanyBusiness(IDbAccessor db)
            : base(db)
        {
        }

        public async Task<List<BTB_Company>> GetCompany()
        {
            return await GetIQueryable().ToListAsync();
        }

        #region 外部接口

        public async Task<BTB_Company> GetTheDataAsync(string id)
        {
            return await GetEntityAsync(id);
        }

        public async Task UpdateDataAsync(BTB_Company data)
        {
            await UpdateAsync(data);
        }
        #endregion

        #region 私有成员

        #endregion
    }
}